package com.lanzchina.lanclass.repository;

import com.lanzchina.lanclass.domain.Menu;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by qiangjindong
 * 2018-2018-10 13:41
 */
public interface MenuRepository extends JpaRepository<Menu, Integer> {

    List<Menu> findByGrade(Integer grade);

    List<Menu> findByGradeAndSuperId(Integer grade, Integer superId);
}
